<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
    var i = 101;
    var arr =[];
    for(;i--;){
        arr.push(i);
    }
    console.log(...arr.sort(function(a,b){
        return a - b;
    }));
    console.log(Math.pow(10,5));
    function num(a){
     return a==1?1:a*num(a-1);
    }
    console.log(num(10));
    // for(var i=5;i>0;i--){
    //     console.log(i);
    // }
    let c = 10;
    let arr1 = [];
    for(let i=1;i<=10;i++){
        arr1.push(i);
    }

    let num1 = 789;
    let str = num1.toString().split("").sort(function(a,b){
        return b-a;
    })
    console.log(Number(str.join("")));

    </script>
</body>
</html>